const Controller = require('egg').Controller

class TreeController extends Controller {
  async index() {
    const { ctx } = this
    const res = await ctx.service.statistics.tree.getColumn()
    if (res) {
      return ctx.renderBack({ records: res })
    }
  }
}

module.exports = TreeController
